#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:demo02.py
@time:2022/02/16
"""
import sys
import json
name = "李四"



# from imp import reload
from importlib import reload

# from mymod.inner.opt import name
# import mymod.inner
# import mymod.inner

# from mymod import inner
# from mymod import inner

def run():
    ...
    #print(mymod.inner.name)
    # print(inner.name)
    # print(mymod)
    # print(inner)
    # print(mymod.inner)

def run01():
    ...
    import mymod
    print(type(mymod))
    print(dir(mymod))


def test01(one=1):
    ...


def run02():
    ...
    import mymod.inner
    print(mymod.inner)


def run03(*args):
    ...
    print(args)


def run04(**kwargs):
    ...
    print(kwargs)


def pow(one,two):
    return one * two


def my_partial(func, *args):
    ...
    def inner(*ar):
        ...
        return func(*ar, *args)
    return inner


if __name__ == '__main__':
    pass
    # run01()
    # run03(*[1,2,3])
    # run04(**{"name":21,"age":21})
    print(json.__file__)
    from functools import partial
    # my_pow = partial(pow,2)
    # print(my_pow(10))
    my_pow = my_partial(pow,2)
    print(my_pow(10))
